
/**
 * main.cpp
 * 
 * This file is the entry point of nobitter.
 * 
 * Copyright (c) 2008 Harunobu Oyama <nobukichi at gmail.com>
 * Licensed under GNU GPL version 3
 *
 */

#include	<QtGui>
#include	"nobitterwindow.h"

int main(int argc, char* argv[])
{
	QApplication app(argc, argv);

	QApplication::setQuitOnLastWindowClosed(false);

#ifdef Q_WS_MAC
	QString pluginDir = QApplication::applicationDirPath() + "../Plugins";
#else
	QString pluginDir = QApplication::applicationDirPath() + "/plugins";
#endif	
	QApplication::addLibraryPath(pluginDir);

	QApplication::setApplicationName("nobitter");
	QApplication::setOrganizationDomain("d.hatena.ne.jp");
	QApplication::setOrganizationName("nobu_kichi");
	
	NobitterWindow mainWnd;
	mainWnd.show();

	return app.exec();
}

